<?php
use yii\helpers\Url;
$this->title = '昊祥科技-会员中心';

$signPackage = \app\components\Jssdk::getSignPackage();
$session = Yii::$app->session;
$coord =  $session->get('positioning');

?>
<script>
var signPackage = <?= json_encode($signPackage) ?>;
var positioningUrl = "<?=Url::to(['member/positioning'])?>";
    console.log(signPackage);
var timestamp = '<?= $timeStamp?>'
var nonceStr = '<?= $nonceStr?>'   
var signType = '<?= $signType?>'
var paySign = '<?= $paySign?>'
var package = '<?= $package?>'
</script>

<?php

$this->registerJsFile('//res.wx.qq.com/open/js/jweixin-1.2.0.js', ['depends' => [\app\assets\HxkjAsset::className()]]);

$this->registerJsFile('@web/hxkj/js/jssdk.js?t='.time(), ['depends' => [\app\assets\HxkjAsset::className()]]);

?>
<h2>这是付钱的页面</h2>
<a href="###" onclick="wxPay()">支付测试</a>
